public class Date {
    public int year = 2024;
    public int month = 10;
    public int day = 19;


    //打印函数
    public void print(Date this) {
        System.out.println(this.year + "年" + this.month + "月"
                + this.day + "月");
    }



    public void setDate(Date this, int year, int month, int day) {
        this.year = year;
        this.month = month;
        this.day = day;
    }


    /*public Date() {
        this(2024,10,18);
        System.out.println("没有参数的构造方法...");
    }

    public Date(int year, int month, int day) {
        //this();
        this.year = year;
        this.month = month;
        this.day = day;
        System.out.println("有三个参数的构造方法");
    }*/


}
